package cn.codeforfun.gitee.bean.repo.request;

import cn.codeforfun.gitee.bean.GiteeRequest;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * 获取所有分支请求
 *
 * @author wangbin
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GiteeListBranchesRequest extends GiteeRequest {
    /**
     * 仓库所属空间地址(企业、组织或个人的地址path)
     */
    @NotBlank(message = "仓库所属空间地址(owner)字段不能为空")
    private String owner;
    /**
     * 仓库路径(path)
     */
    @NotBlank(message = "仓库路径(repo)字段不能为空")
    private String repo;
}
